<!DOCTYPE html>
<html lang="en" xmlns:th="http://www.thymeleaf.org">
<head>
    <meta charset="UTF-8">
    <title>add</title>
</head>
<body>
<form role="form" th:method="post" th:object="${user}" id="addForm">
    <table width="800" cellspacing="0" cellPadding="0" align="center">
        <thead>
        <tr>
            <td colspan="2">添加用户功能</td>
        </tr>
        </thead>
        <tr>
            <td class="rightTd" width="200px">用户名(必须是英文):</td>
            <td class="leftTd"><input type="text" th:field="*{username}" size="30"/></td>
            <div th:errors="${user.username}"></div>
        </tr>
        <tr>
            <td class="rightTd">显示名称(可以是中文):</td>
            <td class="leftTd">
                <input th:field="*{nickname}" size="30"/>
                <div th:errors="${user.nickname}"></div>
            </td>
        </tr>
        <tr>
            <td class="rightTd">用户密码:</td>
            <td>
                <input type="password" th:field="*{password}" size="30"/>
                <div th:errors="${user.password}"></div>
            </td>
            </td>
        </tr>
        <tr>
            <td class="rightTd">用户组:</td>
            <td>
                <input th:field="*{gid}" size="30"/>
                <div th:errors="${user.gid}"></div>
            </td>
        </tr>
        <tr>
            <td colspan="2" class="centerTd"><input type="submit" value="添加用户"/><input type="reset"/></td>
        </tr>
    </table>
</form>
</body>
</html>